package marsdonne.demo4springData;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;


@Configuration
@EntityScan(basePackages = {"marsdonne.demo4springData.domains.jpa"})
@SpringBootApplication(
        exclude = { DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class },
        scanBasePackages = {"marsdonne.demo4springData.multiTenancies", "marsdonne.demo4springData.controllers"}
)
@EnableMongoRepositories(basePackages = {"marsdonne.demo4springData.repositories.mongo"})
public class Demo4jpaApplication {
    public static void main(String[] args) {
        SpringApplication.run(Demo4jpaApplication.class, args);
    }
}
